import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.awt.event.*;

import javax.swing.*;

/**
 * I worked on this assignment alone, using only course materials
 * 
 * GUI of the game
 * @author Da
 * @version 1
 */
public class Test extends JPanel 
{
	/**
	 * main method
	 * @param args
	 */
	public static void main(String args[])
    {
        JFrame frame = new JFrame("Dungeon");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(new Test());
        frame.pack();
        frame.setVisible(true);
        
    }

    public void paintComponent(Graphics g)
    {
    	Image i=(new ImageIcon("src/river.png")).getImage();
    	g.drawImage(i, 22, 22, 300, 300, null);
    	g.setColor(Color.RED);
    	g.drawRect(22, 22, 50, 50);
    	g.drawRect(23, 23, 48, 48);
    	g.drawRect(24, 24, 46, 46);
    	
    	
       
    }
}
